package com.zhz.common.tool.excel.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 合并区域列结果
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MergedRegionCellResult {

    private boolean merged;

    private int cellMergedLength;

    private int rowMergedLength;

    private int cellIndex;

    private int rowIndex;

    public MergedRegionCellResult(boolean merged) {
        this.merged = merged;
    }

    public MergedRegionCellResult(boolean merged, int cellMergedLength, int rowMergedLength) {
        this.merged = merged;
        this.cellMergedLength = cellMergedLength;
        this.rowMergedLength = rowMergedLength;
    }
}